package com.evoplugin.evomessgae;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;


public class evomessage  extends JavaPlugin implements Listener{

	@Override
	public void onEnable(){
		getServer().getPluginManager().registerEvents((Listener) this, this);
		getLogger().info("EvoMessage "+ this.getDescription().getVersion()+" enabled");
	}
	
	@Override
	public void onDisable(){
	}
	
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
    	if(cmd.getName().equalsIgnoreCase("messagea")){ // If the player typed /basic then do the following...
    		BarAPI.setMessage((Player) sender , "123");
    		return true;
    	} 
    	return false; 
    }


}
